const mock = require("mockjs")
const {JobNumber} = require("../models/JobNumber")

let set = new Set();
    for(let i = 0; i< 101; i++){
        set.add(mock.mock("@integer(10000,99999)"))
    }
    
const arr = [...set]
const JobNumberList = mock.mock({
    "datas|100":[
        {
            "id|+1": 1,
            "JobNumberId|+1":arr,
            "JobName": "@cname"
        }
    ]
}).datas
JobNumber.bulkCreate(JobNumberList).then(data => {
    console.log(data);
})
